﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ashlen.Portal.Core;
using Ashlen.Portal.Core.DTO;

namespace Ashlen.Portal.Core.DataInterfaces
{
    public interface INewsDao
    {
        void SaveFeed(object feed, object section);
        void DeleteOldFeeds(int daysToKeep);
        object GetNewsFeed(string guid, int sourceId);
        object GetNewsFeeds(int sourceId, DateTime startDate, DateTime endDate, NewsSortBy sortBy);
        object SearchNewsFeeds(int? sectionId, int? sourceId, int pageSize, string search, int currentPage, DateTime? startDate, DateTime? endDate,
            NewsSortBy sortBy, out int totalRecords);
        //object GetNewsFeeds(NewsSearchRequest request);

        object GetNewsSources();
        object GetNewsSourcesJSON();
        object GetNewsSource(int sourceId);

        object GetNewsSectionJSON();

        object GetNewsSection(int sourceId);

        object GetNewsSourceSection(int sourceId);

        void HitUpdate(int id); 

    }

    
}
